package com.xzz.feign;

import com.xzz.doc.CourseDoc;
import com.xzz.feign.feignFallback.SearchFeignClientFallbackFactory;
import com.xzz.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-search", fallbackFactory = SearchFeignClientFallbackFactory.class)
public interface SearchFeignClient {

    @PostMapping("/search/saveCourse")
    public JSONResult saveCourseDoc(@RequestBody CourseDoc courseDoc);

}